import { DataSourcePlugin } from '@grafana/data';
import { GaussDataSource } from './datasource';
import { ConfigEditor } from './components/ConfigEditor';
import { QueryEditor } from './components/QueryEditor';
import {  GaussOptions, SecureJsonData } from './types';
import { SQLQuery } from '@grafana/sql';
import { CheatSheet } from './CheatSheet';

export const plugin = new DataSourcePlugin<GaussDataSource, SQLQuery, GaussOptions, SecureJsonData>(GaussDataSource)
  .setConfigEditor(ConfigEditor)
  .setQueryEditorHelp(CheatSheet)
  .setQueryEditor(QueryEditor);
